package com.baizhi.dao;

import com.baizhi.entity.Guru;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Lenovo on 2019/6/17.
 */
public interface GuruDao {

    //查询上师的数量
    public  int total(@Param("guruName")String guruName);

    //查询分页查询
    public List<Guru> fenye(@Param("start")int start,@Param("rows")int rows,@Param("guruName")String guruName);

    //添加上师
    public void add(Guru guru);

    //修改上师信息
    public void update(Guru guru);

    //删除上师
    public void delete(int[] ids);

    //查询所有的上师
    public List<Guru> selectAll();

}
